﻿using System;

class AllNumbersFrom1ToN
{
    static void Main()
    {
        Console.Write("Enter a number: ");
        string consoleInput = Console.ReadLine();
        int n = int.Parse(consoleInput);
        Console.Write("The numbers from 1 to {0} are:",n);
        for (int i = 1; i <= n; i++)
        {
            Console.Write(" " + i);
        }
        Console.WriteLine();
    }
}
